package com.ptswitch.material.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.impl.ContractPaymentDao;
import com.ptswitch.material.model.contract.ContractPayment;
import com.ptswitch.material.service.ContractPaymentService;

@Service
public class ContractPaymentServiceImpl implements ContractPaymentService {

    @Resource
    private ContractPaymentDao contractPaymentDao;

    @Override
    public void save(ContractPayment model) {
        contractPaymentDao.save(model);
    }

    @Override
    public ContractPayment findById(String id) {
        return contractPaymentDao.findById(id);
    }

}
